<template>
    <div :style="style">
      <slot></slot>
    </div>
</template>

<script setup lang="ts" >
    
import {computed} from 'vue'
import type {CSSProperties} from "vue"

function defineOptions(arg0: { name: string; }) {
throw new Error('Function not implemented.');
}

 defineOptions({
    name:"ElAside"
 })

    let props = defineProps({
        width:{
            type:Number,
            default:200
        }
    })

    const style = computed(()=>{
        const styles:CSSProperties = {}
        if(props.width){
            styles.width = props.width+'px'
        }

        return styles
        
    })



</script>

<style scoped>

</style>